package com.yr.ryjk.department.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.yr.ryjk.department.entity.Department;

public interface DepartmentMapper {
    int deleteByPrimaryKey(String id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);
    
	List<Department> selectOfPage(int start, int limit, @Param("name")String name, @Param("treatDisease")String treatDisease);
	
	List<Department> selectOfApp(@Param("name")String name, @Param("treatDisease")String treatDisease);
	
	int selectCount(@Param("name")String name, @Param("treatDisease")String treatDisease);
	
	@Select("select * from department")
	@ResultMap("BaseResultMap")
	List<Department> selectAllDepartment();
}